You are here: Symbol Reference > Dew Namespace > Dew.Signal Namespace > Dew.Signal.Units Namespace > Classes > SignalUtils Class > SignalUtils Methods > Goertz Method > SignalUtils.Goertz Method ([In] TVec, double)
Dew Signal for .NET
ContentsIndexHome
PreviousUpNext
SignalUtils.Goertz Method ([In] TVec, double)

The Discrete Fourier transformation (DFT) for a given frequency.

Syntax
C#
Visual Basic
public static TCplx Goertz([In] TVec Src, double Freq);

Calculates the Discrete Fourier transformation (DFT) for a given frequency. Goertz returns the DFT at the Frequency. Each value of the DFT computed by the Goertzel algorithm takes 2N+2 real multiplications and 4N real additions. FFT computes the DFT with N*log2(N) of real multiplications and additions.

DFT of a single frequency. 

 

using Dew.Math; using Dew.Math.Editors; using Dew.Math.Units; using Dew.Signal; using Dew.Signal.Units; using Dew.Math.Tee; using Dew.Signal.Tee; private void button1_Click(object sender, EventArgs e) { Vector a = new Vector(0); SignalUtils.Tone(a,256,5.5/256,0,12.53,false); //generate a tone //And now detect the amplitude at non-integer frequency: MessageBox.Show("Amplitude = " + Math387.SampleToStr(Math387.CAbs(SignalUtils.Goertz(a,5.5/256))/128,0,15)); }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!